

import com.jfinal.plugin.activerecord.Record;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ReturnData<DATA,CODE> {
    private DATA data;
    private boolean result;
    private String code;
    private CODE msg;
    private Date createTime;

    public DATA getData() {
        return data;
    }

    public void setData(DATA data) {
        this.data = data;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public CODE getMsg() {
        return msg;
    }

    public void setMsg(CODE msg) {
        this.msg = msg;
    }

    public Date getCreateTime() {
        this.createTime=new Date();
        return createTime;
    }



}
